/*
Copyright DAUPHIN Maxime 2005

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
http://www.gnu.org/licenses/gpl.txt
*/
#ifndef __ITEM_H__
#define __ITEM_H__

#include "Win32Lib/Gui.h"
#include "Win32Lib/Image.h"
#include "Win32Lib/Any.h"

class Item :
	public Gui::Image
{
	///content text
	//std::string m_contant;
	Gui::Any		m_any;
	UINT	m_uFormat;
	///Icon
	HICON	m_hIconText;
	HICON	m_hIconUnknown;
	HICON	m_hIconFiles;
	///Bkg color
	Gui::Color m_colorStart;
	Gui::Color m_colorEnd;

	//static const COLORREF COLOR_BLUE_START = 0x00e9e0d7;
	static const COLORREF COLOR_BLUE_START = 0x00ffaaaa;
	static const COLORREF COLOR_BLUE_END = 0x00d8c9b9;
	static const COLORREF COLOR_WHITE = 0x00FFFFFF;
	static const COLORREF COLOR_GREY = 0x00d9d9d9;
public:
	Item(void);
	virtual ~Item(void);

	virtual int paint();
	int onMouseMove(Gui::Point point);
	
	void setContant( Gui::Any &any, UINT uFormat );
	void setDataClipBoard( Gui::Point point, Gui::ClipBoard *pClip );

};

#endif //#define __ITEM_H__
